| Conditions | 1 |
| Total Lines | 7 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import { ExecutionContext, Injectable } from '@nestjs/common'; |
||
| 10 | |||
| 11 | async canActivate(context: ExecutionContext): Promise<boolean> { |
||
| 12 | // Perform log in using LocalStrategy |
||
| 13 | await super.canActivate(context); |
||
| 14 | const request = context.switchToHttp().getRequest() as Request; |
||
| 15 | await super.logIn(request); |
||
| 16 | return true; |
||
| 17 | } |
||
| 19 |